package com.example.device.admin.web.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * User: Administrator
 * Date: 2018/9/20
 * Time: 14:28
 * Version:V1.0
 */
@Component
public class Topic {
   @Value("${iot.productKey}")
   private String productKey;


// 设备状态上报  /user/datapoint/data
    public String getDeviceStatusTopic(){
        return new StringBuffer().append("/").append(productKey).append("/#").append("/user/datapoint/data").toString();
    }


}
